Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(logging): Arduino log redirection #11159

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

mathieucarbou
Copy link
Contributor

@mathieucarbou mathieucarbou commented Mar 21, 2025

ets_sys.h supports log redirection when ets_printf() is used and some functions are set with ets_install_putc1() or ets_install_putc1().

/**
  * @brief  Printf the strings to uart or other devices, similar with printf, simple than printf.
  *         Can not print float point data format, or longlong data format.
  *         So we maybe only use this in ROM.
  *
  * @param  const char *fmt : See printf.
  *
  * @param  ... : See printf.
  *
  * @return int : the length printed to the output device.
  */
int ets_printf(const char *fmt, ...);

/**
  * @brief  Output a char to uart, which uart to output(which is in uart module in ROM) is not in scope of the function.
  *         Can not print float point data format, or longlong data format
  *
  * @param  char c : char to output.
  *
  * @return None
  */
void ets_write_char_uart(char c);

/**
  * @brief  Ets_printf have two output functions: putc1 and putc2, both of which will be called if need ouput.
  *         To install putc1, which is defaulted installed as ets_write_char_uart in none silent boot mode, as NULL in silent mode.
  *
  * @param  void (*)(char) p: Output function to install.
  *
  * @return None
  */
void ets_install_putc1(void (*p)(char c));

/**
  * @brief  Ets_printf have two output functions: putc1 and putc2, both of which will be called if need ouput.
  *         To install putc2, which is defaulted installed as NULL.
  *
  * @param  void (*)(char) p: Output function to install.
  *
  * @return None
  */
void ets_install_putc2(void (*p)(char c));

I need to add a custom ets_install_putc1() handler to redirect arduino logs, but sadly the implementation in esp32-hal-uart.c is bypassing the ets_printf() internal mechanism and is directly calling ets_write_char_uart() instead .

#if (ARDUINO_USB_CDC_ON_BOOT == 1 && ARDUINO_USB_MODE == 0) || CONFIG_IDF_TARGET_ESP32C3 \
|| ((CONFIG_IDF_TARGET_ESP32H2 || CONFIG_IDF_TARGET_ESP32C6 || CONFIG_IDF_TARGET_ESP32P4) && ARDUINO_USB_CDC_ON_BOOT == 1)
vsnprintf(temp, len + 1, format, arg);
ets_printf("%s", temp);
#else
int wlen = vsnprintf(temp, len + 1, format, arg);
for (int i = 0; i < wlen; i++) {
ets_write_char_uart(temp[i]);
}
#endif

Why ? I really was not able to figure out...

But this piece of code prevents everybody from redirecting Arduino logs, except with the boards in the macro conditions listed above...

Since I do not know the logic why ets_printf() is not called in all cases, I am proposing to add a macro: ARDUINO_LOG_FORCE_ETS_PRINTF=1 which, when set, will make sure all the logs go through ets_printf().

The user setting this macro will then be responsible to:

  1. Either call ets_install_putc1(ets_write_char_uart)
  2. Or call ets_install_putc1(my_custom_character_log_callback) with his custom function to redirect the logs.

Use case example:

static StreamString* _arduinoLogBuffer = nullptr;
static Mycila::Logger* _arduinoLogDestination = nullptr;

static void log_char(char c) {
  if (!_arduinoLogDestination)
    return;
  _arduinoLogBuffer->write(c);
  if (c == '\n') {
    for (auto& output : _arduinoLogDestination->_outputs) {
      output->print("SYSTEM: "); // TODO: REMOVE THIS - PROVES ARDUINO LOGS WERE REDIRECTD
      output->print(*_arduinoLogBuffer);
    }
    _arduinoLogBuffer->clear();
  }
}

static void redirectArduinoLogs(Logger& logger) {
  _arduinoLogBuffer = new StreamString();
  _arduinoLogBuffer->reserve(MYCILA_LOGGER_BUFFER_SIZE);
  _arduinoLogDestination = &logger;

  // will override default arduino installed functions which sends logs to UART
  ets_install_putc1(log_char);
}

With the macro def and the code above Arduino logs with be printed:

  redirectArduinoLogs(logger);

  logger.setLevel(ARDUHAL_LOG_LEVEL_DEBUG);
  logger.forwardTo(Serial);

  log_d("Arduino debug message");
  log_i("Arduino info message");
  log_w("Arduino warning message");
  log_e("Arduino error message");

outputs:

SYSTEM: [   819][D][Logger.ino:17] setup(): Arduino debug message
SYSTEM: [   826][I][Logger.ino:18] setup(): Arduino info message
SYSTEM: [   833][W][Logger.ino:19] setup(): Arduino warning message
SYSTEM: [   840][E][Logger.ino:20] setup(): Arduino error message

Copy link
Contributor

github-actions bot commented Mar 21, 2025

Messages
📖 🎉 Good Job! All checks are passing!

👋 Hello mathieucarbou, we appreciate your contribution to this project!


📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more.

🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project.

Click to see more instructions ...


This automated output is generated by the PR linter DangerJS, which checks if your Pull Request meets the project's requirements and helps you fix potential issues.

DangerJS is triggered with each push event to a Pull Request and modify the contents of this comment.

Please consider the following:
- Danger mainly focuses on the PR structure and formatting and can't understand the meaning behind your code or changes.
- Danger is not a substitute for human code reviews; it's still important to request a code review from your colleagues.
- To manually retry these Danger checks, please navigate to the Actions tab and re-run last Danger workflow.

Review and merge process you can expect ...


We do welcome contributions in the form of bug reports, feature requests and pull requests.

1. An internal issue has been created for the PR, we assign it to the relevant engineer.
2. They review the PR and either approve it or ask you for changes or clarifications.
3. Once the GitHub PR is approved we do the final review, collect approvals from core owners and make sure all the automated tests are passing.
- At this point we may do some adjustments to the proposed change, or extend it by adding tests or documentation.
4. If the change is approved and passes the tests it is merged into the default branch.

Generated by 🚫 dangerJS against 129f8fe

@mathieucarbou mathieucarbou changed the title feat(log) Support redirecting Arduino logs feat(logging): Arduino log redirection Mar 21, 2025
@SuGlider
Copy link
Collaborator

@mathieucarbou - I remember that the reason for that is because ESP32|ESP32-S2|ESP32-S3 (Xtensa SoC) had a problem with ets_printf(). This code works for UART and also USB CDC logging, when Serial is actually a HWSerial or USBCDC port.

We can review if this is still valid.

@SuGlider
Copy link
Collaborator

@mathieucarbou - What SoC do you use with your projects?

@mathieucarbou
Copy link
Contributor Author

mathieucarbou commented Mar 21, 2025

@mathieucarbou - What SoC do you use with your projects?

I am currently testing with an esp32dev board, but the project has to also work for some other boards such as s2, s3, wt32_eth01, etc. This is a feature that will only be activated in debug mode to grab the boot logs from the ESP since users cannot connect easily to a USB computer.

I did the modification locally in the c file and tested with the esp32dev board and it works but I don't know the possible impact of this on other boards.

I was also intrigued by this comment in the header:

To install putc1, which is defaulted installed as ets_write_char_uart

So this is my understanding that putc1 (so a call to ets_printf) should already use ets_write_char_uart behind ?

Copy link
Collaborator

@SuGlider SuGlider left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll retest log output within all SoC using just ets_printf() to verify if it works for all possible Serial ports (UART/CDC).

Let set this PR on hold until the results are out.

Copy link
Contributor

github-actions bot commented Mar 21, 2025

Test Results

 76 files   76 suites   13m 28s ⏱️
 38 tests  38 ✅ 0 💤 0 ❌
241 runs  241 ✅ 0 💤 0 ❌

Results for commit 129f8fe.

♻️ This comment has been updated with latest results.

@mathieucarbou
Copy link
Contributor Author

I'll retest log output within all SoC using just ets_printf() to verify if it works for all possible Serial ports (UART/CDC).

Let set this PR on hold until the results are out.

Thanks a lot!

@SuGlider SuGlider self-assigned this Mar 21, 2025
@SuGlider
Copy link
Collaborator

SuGlider commented Mar 21, 2025

So this is my understanding that putc1 (so a call to ets_printf) should already use ets_write_char_uart behind ?

ets_install_putc1() and ets_install_putc2() should just define a pointer to a function that shall output anything that uses ets_printf(). In other words, ets_printf() calls the output function defined as putc1() or putc2().

Therefore, if your software needs to redirect log output, it could just change the function pointed by ets_install_putc1() for UART and ets_install_putc2() for USB CDC and use ets_printf() whenever logging.

ets_write_char_uart() outputs a single byte using exclusivly the UART peripheral - internal ROM implementation used by the system for outputting messages, such as when pressing BOOT and pulsing RESET to enter in BOOT mode.

@mathieucarbou
Copy link
Contributor Author

mathieucarbou commented Mar 21, 2025

ets_install_putc1() and ets_install_putc2() should just define a pointer to a function that shall output anything that uses ets_printf(). In other words, ets_printf() calls the output function defined as putc1() or putc2().

That's exactly my understanding also.

Therefore, if your software needs to redirect log output, it could just change the function pointed by ets_install_putc1() for UART and ets_install_putc2() for USB CDC and use ets_printf() whenever logging.

That's what does not work.

If you mean:

if your software needs to redirect log output when using ets_printf()

then I agree with you.

But this is not the use case explained above.

What I want and need is to redirect all calls to log_e, log_w, log_i, etc Basically, all Arduino logs, to a custom function. And for that, Arduino would need to call every time ets_printf(), which is not the case now because it directly calls instead the uart callback.

Copy link
Contributor

github-actions bot commented Mar 21, 2025

Memory usage test (comparing PR against master branch)

The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.

MemoryFLASH [bytes]FLASH [%]RAM [bytes]RAM [%]
TargetDECINCDECINCDECINCDECINC
ESP32P4💚 -1000.000.00000.000.00
ESP32S3💚 -4⚠️ +1400.00⚠️ +0.04000.000.00
ESP32S2💚 -16⚠️ +120.000.00000.000.00
ESP32C30⚠️ +2220.00⚠️ +0.07000.000.00
ESP32C6💚 -10⚠️ +2140.00⚠️ +0.08000.000.00
ESP32H2💚 -10⚠️ +2080.00⚠️ +0.07000.000.00
ESP32💚 -16⚠️ +160.000.00000.000.00
Click to expand the detailed deltas report [usage change in BYTES]
TargetESP32P4ESP32S3ESP32S2ESP32C3ESP32C6ESP32H2ESP32
ExampleFLASHRAMFLASHRAMFLASHRAMFLASHRAMFLASHRAMFLASHRAMFLASHRAM
ArduinoOTA/examples/BasicOTA💚 -100💚 -400000💚 -100--💚 -120
AsyncUDP/examples/AsyncUDPClient💚 -100💚 -400000💚 -100--00
AsyncUDP/examples/AsyncUDPMulticastServer💚 -100💚 -400000💚 -100--00
AsyncUDP/examples/AsyncUDPServer💚 -100💚 -400000💚 -100--00
DNSServer/examples/CaptivePortal💚 -100💚 -400000💚 -100--00
EEPROM/examples/eeprom_class💚 -100💚 -400000💚 -100💚 -10000
EEPROM/examples/eeprom_extra💚 -100💚 -400000💚 -100💚 -10000
EEPROM/examples/eeprom_write💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/AnalogOut/LEDCFade💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/AnalogOut/LEDCSingleChannel💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/AnalogOut/LEDCSoftwareFade💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/AnalogOut/SigmaDelta💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/AnalogOut/ledcFrequency💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/AnalogOut/ledcWrite_RGB💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/AnalogRead💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/AnalogReadContinuous💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/ArduinoStackSize💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/CI/CIBoardsTest💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/ChipID/GetChipID💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/DeepSleep/TimerWakeUp💚 -100💚 -400000💚 -100--00
ESP32/examples/DeepSleep/TouchWakeUp💚 -100💚 -4000------00
ESP32/examples/FreeRTOS/BasicMultiThreading💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/FreeRTOS/Mutex💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/FreeRTOS/Queue💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/FreeRTOS/Semaphore💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/GPIO/BlinkRGB💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/GPIO/FunctionalInterrupt💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/GPIO/FunctionalInterruptStruct💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/GPIO/GPIOInterrupt💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/HWCDC_Events💚 -100⚠️ +1400--⚠️ +2220⚠️ +2140⚠️ +2080--
ESP32/examples/MacAddress/GetMacAddress💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/RMT/Legacy_RMT_Driver_Compatible💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/RMT/RMTCallback💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/RMT/RMTLoopback💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/RMT/RMTReadXJT💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/RMT/RMTWrite_RGB_LED💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/RMT/RMT_CPUFreq_Test💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/RMT/RMT_EndOfTransmissionState💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/RMT/RMT_LED_Blink💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/ResetReason/ResetReason💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/ResetReason/ResetReason2💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/Serial/BaudRateDetect_Demo💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/Serial/OnReceiveError_BREAK_Demo💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/Serial/OnReceive_Demo💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/Serial/RS485_Echo_Demo💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/Serial/RxFIFOFull_Demo💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/Serial/RxTimeout_Demo💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/Serial/Serial_All_CPU_Freqs💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/Serial/Serial_STD_Func_OnReceive💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/Serial/onReceiveExample💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/TWAI/TWAIreceive💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/TWAI/TWAItransmit💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/Template/ExampleTemplate💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/Time/SimpleTime💚 -100💚 -400000💚 -100--00
ESP32/examples/Timer/RepeatTimer💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/Timer/WatchdogTimer💚 -10000💚 -12000💚 -100💚 -100💚 -120
ESP32/examples/Touch/TouchInterrupt💚 -100💚 -4000------00
ESP32/examples/Touch/TouchRead💚 -100💚 -4000------00
ESP32/examples/Utilities/HEXBuilder💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/Utilities/MD5Builder💚 -100💚 -400000💚 -100💚 -10000
ESP32/examples/Utilities/SHA1Builder💚 -100💚 -400000💚 -100💚 -10000
ESP_I2S/examples/ES8388_loopback💚 -100💚 -400000💚 -100💚 -10000
ESP_I2S/examples/Record_to_WAV💚 -100💚 -40--------00
ESP_I2S/examples/Simple_tone💚 -100💚 -400000💚 -100💚 -10000
ESPmDNS/examples/mDNS-SD_Extended💚 -100💚 -400000💚 -100--00
ESPmDNS/examples/mDNS_Web_Server💚 -100💚 -40💚 -12000💚 -100--00
Ethernet/examples/ETH_TLK110💚 -100----------00
Ethernet/examples/ETH_W5500_Arduino_SPI💚 -100💚 -400000💚 -100💚 -10000
Ethernet/examples/ETH_W5500_IDF_SPI💚 -100💚 -40💚 -12000💚 -100💚 -10000
Ethernet/examples/ETH_WIFI_BRIDGE💚 -100💚 -400000💚 -100--00
FFat/examples/FFat_Test💚 -100💚 -400000💚 -100💚 -10000
FFat/examples/FFat_time💚 -100💚 -400000💚 -100--00
HTTPClient/examples/Authorization💚 -100💚 -400000💚 -100--00
HTTPClient/examples/BasicHttpClient💚 -100💚 -400000💚 -100--00
HTTPClient/examples/BasicHttpsClient💚 -100💚 -40💚 -12000💚 -100--00
HTTPClient/examples/ReuseConnection💚 -100💚 -400000💚 -100--💚 -120
HTTPClient/examples/StreamHttpClient💚 -100💚 -400000💚 -100--00
HTTPUpdate/examples/httpUpdate💚 -100💚 -40💚 -12000💚 -100--00
HTTPUpdate/examples/httpUpdateSPIFFS💚 -100💚 -400000💚 -100--00
HTTPUpdate/examples/httpUpdateSecure💚 -100💚 -40💚 -12000💚 -100--00
HTTPUpdateServer/examples/WebUpdater💚 -100💚 -400000💚 -100--00
LittleFS/examples/LITTLEFS_test💚 -100💚 -400000💚 -100💚 -10000
LittleFS/examples/LITTLEFS_time💚 -100💚 -400000💚 -100--💚 -40
NetBIOS/examples/ESP_NBNST💚 -100💚 -400000💚 -100--00
NetworkClientSecure/examples/WiFiClientInsecure💚 -100💚 -400000💚 -100--00
NetworkClientSecure/examples/WiFiClientPSK💚 -100000000💚 -100--00
NetworkClientSecure/examples/WiFiClientSecure💚 -100💚 -400000💚 -100--00
NetworkClientSecure/examples/WiFiClientSecureProtocolUpgrade💚 -100💚 -400000💚 -100--00
NetworkClientSecure/examples/WiFiClientShowPeerCredentials💚 -100💚 -400000💚 -100--00
NetworkClientSecure/examples/WiFiClientTrustOnFirstUse💚 -100💚 -400000💚 -100--00
PPP/examples/PPP_Basic💚 -100000000💚 -100💚 -10000
PPP/examples/PPP_WIFI_BRIDGE💚 -100💚 -400000💚 -100--00
Preferences/examples/Prefs2Struct💚 -100💚 -400000💚 -100💚 -10000
Preferences/examples/StartCounter💚 -100💚 -400000💚 -100💚 -10000
SD/examples/SD_Test💚 -100💚 -400000💚 -100💚 -10000
SD/examples/SD_time💚 -100💚 -400000💚 -100--💚 -40
SD_MMC/examples/SD2USBMSC💚 -100💚 -40----------
SD_MMC/examples/SDMMC_Test💚 -100💚 -40--------00
SD_MMC/examples/SDMMC_time💚 -100💚 -40--------💚 -120
SPI/examples/SPI_Multiple_Buses💚 -100💚 -400000💚 -100💚 -10000
SPIFFS/examples/SPIFFS_Test💚 -100💚 -400000💚 -100💚 -10000
SPIFFS/examples/SPIFFS_time💚 -100💚 -400000💚 -100--00
TFLiteMicro/examples/hello_world💚 -100💚 -400000💚 -100💚 -10000
Ticker/examples/Blinker💚 -100💚 -400000💚 -100💚 -10000
Ticker/examples/TickerBasic💚 -100💚 -400000💚 -100💚 -10000
Ticker/examples/TickerParameter💚 -100💚 -400000💚 -100💚 -10000
USB/examples/CompositeDevice💚 -100💚 -4000--------
USB/examples/ConsumerControl💚 -100💚 -4000--------
USB/examples/CustomHIDDevice💚 -100💚 -4000--------
USB/examples/FirmwareMSC💚 -100💚 -4000--------
USB/examples/Gamepad💚 -100💚 -4000--------
USB/examples/HIDVendor💚 -100💚 -4000--------
USB/examples/Keyboard/KeyboardLogout💚 -100💚 -4000--------
USB/examples/Keyboard/KeyboardMessage💚 -100💚 -4000--------
USB/examples/Keyboard/KeyboardReprogram💚 -100💚 -4000--------
USB/examples/Keyboard/KeyboardSerial💚 -100💚 -4000--------
USB/examples/KeyboardAndMouseControl💚 -100💚 -4000--------
USB/examples/MIDI/MidiController💚 -100💚 -4000--------
USB/examples/MIDI/MidiInterface💚 -100💚 -4000--------
USB/examples/MIDI/MidiMusicBox💚 -100💚 -4000--------
USB/examples/MIDI/ReceiveMidi💚 -100💚 -4000--------
USB/examples/Mouse/ButtonMouseControl💚 -100💚 -4000--------
USB/examples/SystemControl💚 -100💚 -4000--------
USB/examples/USBMSC💚 -100💚 -4000--------
USB/examples/USBSerial💚 -100💚 -4000--------
USB/examples/USBVendor💚 -100💚 -4000--------
Update/examples/AWS_S3_OTA_Update💚 -100💚 -400000💚 -100--00
Update/examples/HTTPS_OTA_Update💚 -100💚 -400000💚 -100--💚 -40
Update/examples/HTTP_Client_AES_OTA_Update💚 -100💚 -40💚 -12000💚 -100--00
Update/examples/HTTP_Server_AES_OTA_Update💚 -100💚 -400000💚 -100--00
Update/examples/OTAWebUpdater💚 -100💚 -400000💚 -100--00
Update/examples/SD_Update💚 -100💚 -400000💚 -100💚 -10000
WebServer/examples/AdvancedWebServer💚 -100💚 -400000💚 -100--00
WebServer/examples/FSBrowser💚 -100💚 -400000💚 -100--00
WebServer/examples/Filters💚 -100💚 -400000💚 -100--00
WebServer/examples/HelloServer💚 -100💚 -400000💚 -100--00
WebServer/examples/HttpAdvancedAuth💚 -100💚 -400000💚 -100--00
WebServer/examples/HttpAuthCallback💚 -100⚠️ +400000💚 -100--00
WebServer/examples/HttpAuthCallbackInline💚 -100💚 -400000💚 -100--00
WebServer/examples/HttpBasicAuth💚 -100💚 -40💚 -12000💚 -100--00
WebServer/examples/HttpBasicAuthSHA1💚 -100💚 -400000💚 -100--00
WebServer/examples/HttpBasicAuthSHA1orBearerToken💚 -100💚 -400000💚 -100--00
WebServer/examples/MultiHomedServers💚 -100💚 -400000💚 -100--00
WebServer/examples/PathArgServer💚 -100💚 -400000💚 -100--00
WebServer/examples/SDWebServer💚 -100💚 -40💚 -4000💚 -100--00
WebServer/examples/SimpleAuthentification💚 -100💚 -400000💚 -100--00
WebServer/examples/UploadHugeFile💚 -100💚 -40💚 -12000💚 -100--00
WebServer/examples/WebServer💚 -100💚 -40💚 -4000💚 -100--00
WebServer/examples/WebUpdate💚 -100💚 -400000💚 -100--00
WiFi/examples/FTM/FTM_Initiator💚 -100💚 -400000💚 -100--00
WiFi/examples/FTM/FTM_Responder💚 -100💚 -400000💚 -100--💚 -160
WiFi/examples/SimpleWiFiServer💚 -100💚 -400000💚 -100--00
WiFi/examples/WiFiAccessPoint💚 -100💚 -400000💚 -100--00
WiFi/examples/WiFiClient💚 -100💚 -400000💚 -100--00
WiFi/examples/WiFiClientBasic💚 -100💚 -400000💚 -100--💚 -40
WiFi/examples/WiFiClientConnect💚 -100💚 -400000💚 -100--00
WiFi/examples/WiFiClientEvents💚 -100💚 -40💚 -12000💚 -100--00
WiFi/examples/WiFiClientStaticIP💚 -100💚 -400000💚 -100--00
WiFi/examples/WiFiExtender💚 -100💚 -40⚠️ +12000💚 -100--00
WiFi/examples/WiFiIPv6💚 -100💚 -400000💚 -100--00
WiFi/examples/WiFiMulti💚 -100💚 -400000💚 -100--00
WiFi/examples/WiFiMultiAdvanced💚 -100💚 -400000💚 -100--00
WiFi/examples/WiFiScan💚 -100💚 -40💚 -12000💚 -100--00
WiFi/examples/WiFiScanAsync💚 -100💚 -40💚 -12000💚 -100--00
WiFi/examples/WiFiScanDualAntenna💚 -100💚 -400000💚 -100--00
WiFi/examples/WiFiScanTime💚 -100💚 -400000💚 -100--00
WiFi/examples/WiFiTelnetToSerial💚 -100💚 -400000💚 -100--00
WiFi/examples/WiFiUDPClient💚 -100💚 -400000💚 -100--00
Wire/examples/WireMaster💚 -100💚 -400000💚 -100💚 -10000
Wire/examples/WireScan💚 -100💚 -400000💚 -100💚 -10000
Wire/examples/WireSlave💚 -100💚 -400000💚 -100💚 -10000
BLE/examples/BLE5_extended_scan--💚 -40--00💚 -100💚 -100--
BLE/examples/BLE5_multi_advertising--💚 -40--00💚 -100💚 -100--
BLE/examples/BLE5_periodic_advertising--💚 -40--00💚 -100💚 -100--
BLE/examples/BLE5_periodic_sync--00--00💚 -100💚 -100--
BLE/examples/Beacon_Scanner--💚 -40--00💚 -100💚 -10000
BLE/examples/Client--💚 -40--00💚 -100💚 -10000
BLE/examples/EddystoneTLM_Beacon--💚 -40--00💚 -100💚 -10000
BLE/examples/EddystoneURL_Beacon--💚 -40--00💚 -100💚 -10000
BLE/examples/Notify--💚 -40--00💚 -100💚 -10000
BLE/examples/Scan--💚 -40--00💚 -100💚 -10000
BLE/examples/Server--💚 -40--00💚 -100💚 -10000
BLE/examples/Server_multiconnect--💚 -40--00💚 -100💚 -10000
BLE/examples/UART--💚 -40--00💚 -100💚 -10000
BLE/examples/Write--💚 -40--00💚 -100💚 -10000
BLE/examples/iBeacon--💚 -40--00💚 -100💚 -100💚 -120
ESP32/examples/Camera/CameraWebServer (1)--0000------💚 -40
ESP32/examples/Camera/CameraWebServer (2)--💚 -4000------00
ESP32/examples/Camera/CameraWebServer (3)--💚 -40----------
ESP32/examples/DeepSleep/ExternalWakeUp--💚 -4000------00
ESP_NOW/examples/ESP_NOW_Broadcast_Master--💚 -40💚 -12000💚 -100--00
ESP_NOW/examples/ESP_NOW_Broadcast_Slave--💚 -400000💚 -100--00
ESP_NOW/examples/ESP_NOW_Network--💚 -400000💚 -100--💚 -40
ESP_NOW/examples/ESP_NOW_Serial--💚 -400000💚 -100--00
ESP_SR/examples/Basic--💚 -40----------
HTTPClient/examples/HTTPClientEnterprise--💚 -400000💚 -100--00
Insights/examples/DiagnosticsSmokeTest--💚 -400000💚 -100--00
Insights/examples/MinimalDiagnostics--💚 -400000💚 -100--00
Matter/examples/MatterColorLight--💚 -400000💚 -100--💚 -120
Matter/examples/MatterCommissionTest--000000💚 -100--00
Matter/examples/MatterComposedLights--💚 -400000💚 -100--💚 -120
Matter/examples/MatterContactSensor--💚 -400000💚 -100--00
Matter/examples/MatterDimmableLight--💚 -400000💚 -100--00
Matter/examples/MatterEnhancedColorLight--💚 -400000💚 -100--00
Matter/examples/MatterFan--💚 -400000💚 -100--00
Matter/examples/MatterHumiditySensor--💚 -400000💚 -100--💚 -120
Matter/examples/MatterMinimum--💚 -400000💚 -100--00
Matter/examples/MatterOccupancySensor--💚 -400000💚 -100--00
Matter/examples/MatterOnIdentify--💚 -400000💚 -100--00
Matter/examples/MatterOnOffLight--💚 -400000💚 -100--00
Matter/examples/MatterOnOffPlugin--💚 -400000💚 -100--00
Matter/examples/MatterPressureSensor--💚 -400000💚 -100--00
Matter/examples/MatterSmartButon--💚 -400000💚 -100--00
Matter/examples/MatterTemperatureLight--💚 -400000💚 -100--00
Matter/examples/MatterTemperatureSensor--💚 -400000💚 -100--00
Matter/examples/MatterThermostat--💚 -400000💚 -100--00
Matter/examples/WiFiProvWithinMatter--⚠️ +120💚 -4000💚 -100--00
NetworkClientSecure/examples/WiFiClientSecureEnterprise--💚 -400000💚 -100--00
RainMaker/examples/RMakerCustom--💚 -40💚 -12000💚 -100----
RainMaker/examples/RMakerCustomAirCooler--💚 -400000💚 -100----
RainMaker/examples/RMakerSonoffDualR3--💚 -400000💚 -100----
RainMaker/examples/RMakerSwitch--💚 -400000💚 -100----
SimpleBLE/examples/SimpleBleDevice--💚 -40--00💚 -100💚 -10000
WebServer/examples/Middleware--💚 -400000💚 -100--00
WiFi/examples/WPS--💚 -40💚 -16000💚 -100--00
WiFi/examples/WiFiBlueToothSwitch--💚 -40--00💚 -100--00
WiFi/examples/WiFiClientEnterprise--💚 -400000💚 -100--00
WiFi/examples/WiFiSmartConfig--⚠️ +1200000💚 -100--⚠️ +160
WiFiProv/examples/WiFiProv--💚 -400000💚 -100--00
Zigbee/examples/Zigbee_Color_Dimmer_Switch--💚 -400000💚 -100💚 -10000
Zigbee/examples/Zigbee_Gateway--💚 -400000----💚 -120
Zigbee/examples/Zigbee_On_Off_Switch--💚 -400000💚 -100💚 -10000
Zigbee/examples/Zigbee_Range_Extender--💚 -40💚 -12000💚 -100💚 -10000
Zigbee/examples/Zigbee_Thermostat--💚 -400000💚 -100💚 -100💚 -40
OpenThread/examples/COAP/coap_lamp--------💚 -100💚 -100--
OpenThread/examples/COAP/coap_switch--------💚 -100💚 -100--
OpenThread/examples/SimpleCLI--------💚 -100💚 -100--
OpenThread/examples/SimpleNode--------💚 -100💚 -100--
OpenThread/examples/SimpleThreadNetwork/ExtendedRouterNode--------💚 -100💚 -100--
OpenThread/examples/SimpleThreadNetwork/LeaderNode--------💚 -100💚 -100--
OpenThread/examples/SimpleThreadNetwork/RouterNode--------💚 -100💚 -100--
OpenThread/examples/ThreadScan--------💚 -100💚 -100--
OpenThread/examples/onReceive--------💚 -100💚 -100--
Zigbee/examples/Zigbee_Analog_Input_Output--------💚 -100💚 -100--
Zigbee/examples/Zigbee_CarbonDioxide_Sensor--------💚 -100💚 -100--
Zigbee/examples/Zigbee_Color_Dimmable_Light--------💚 -100💚 -100--
Zigbee/examples/Zigbee_Contact_Switch--------💚 -100💚 -100--
Zigbee/examples/Zigbee_Dimmable_Light--------💚 -100💚 -100--
Zigbee/examples/Zigbee_Illuminance_Sensor--------💚 -100💚 -100--
Zigbee/examples/Zigbee_OTA_Client--------💚 -100💚 -100--
Zigbee/examples/Zigbee_Occupancy_Sensor--------💚 -100💚 -100--
Zigbee/examples/Zigbee_On_Off_Light--------💚 -100💚 -100--
Zigbee/examples/Zigbee_PM25_Sensor--------💚 -100💚 -100--
Zigbee/examples/Zigbee_Pressure_Flow_Sensor--------💚 -100💚 -100--
Zigbee/examples/Zigbee_Scan_Networks--------💚 -100💚 -100--
Zigbee/examples/Zigbee_Temp_Hum_Sensor_Sleepy--------💚 -100💚 -100--
Zigbee/examples/Zigbee_Temperature_Sensor--------💚 -100💚 -100--
Zigbee/examples/Zigbee_Vibration_Sensor--------💚 -100💚 -100--
Zigbee/examples/Zigbee_Wind_Speed_Sensor--------💚 -100💚 -100--
Zigbee/examples/Zigbee_Window_Covering--------💚 -100💚 -100--
BluetoothSerial/examples/DiscoverConnect------------00
BluetoothSerial/examples/GetLocalMAC------------00
BluetoothSerial/examples/SerialToSerialBT------------00
BluetoothSerial/examples/SerialToSerialBTM------------00
BluetoothSerial/examples/SerialToSerialBT_Legacy------------00
BluetoothSerial/examples/SerialToSerialBT_SSP------------00
BluetoothSerial/examples/bt_classic_device_discovery------------00
BluetoothSerial/examples/bt_remove_paired_devices------------00
ESP32/examples/DeepSleep/SmoothBlink_ULP_Code------------00
Ethernet/examples/ETH_LAN8720------------00

@SuGlider SuGlider added Status: Needs investigation We need to do some research before taking next steps on this issue Status: In Progress ⚠️ Issue is in progress labels Mar 22, 2025
@SuGlider SuGlider added this to the 3.2.1 milestone Mar 31, 2025
@SuGlider
Copy link
Collaborator

SuGlider commented Apr 5, 2025

@mathieucarbou - We will change esp32-hal-uart.c to only use ets_printf().

@SuGlider SuGlider added Status: Review needed Issue or PR is awaiting review and removed Status: In Progress ⚠️ Issue is in progress Status: Needs investigation We need to do some research before taking next steps on this issue labels Apr 5, 2025
@SuGlider SuGlider requested a review from me-no-dev April 5, 2025 18:53
@SuGlider SuGlider requested review from P-R-O-C-H-Y and SuGlider April 5, 2025 18:53
@mathieucarbou
Copy link
Contributor Author

@SuGlider : thanks a lot !

@SuGlider SuGlider requested a review from lucasssvaz April 8, 2025 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Peripheral: UART Status: Review needed Issue or PR is awaiting review
Projects
Status: In Review
Development

Successfully merging this pull request may close these issues.

3 participants